//
//  CellModel.h
//  Edu_iOS2018
//
//  Created by apple on 2018/1/12.
//  Copyright © 2018年 yanyan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

/*
 "id":"762",
 "content":"hello",
 "smallAvatar":"http://edu-xyw-test.oss-cn-hangzhou.aliyuncs.com/avatar/2018113074126-g69n4b.jpg?x-oss-process=image/crop,x_0,y_0,w_200,h_200/resize,m_fixed,h_48,w_48",
 "type":"me"
 */

typedef enum {
    cellTypeFromMe=0,//自己
    cellTypeFromThey=1//他人
}CellType;

@interface CellModel : NSObject
///id
@property(nonatomic, copy)NSString * id;
///文本
@property(nonatomic, copy)NSString * content;
///是否本人判断类型
@property(nonatomic, copy)NSString * type;
///头像
@property (nonatomic, copy) NSString *smallAvatar;
///时间
@property (nonatomic, copy) NSString *createdTime;

+(instancetype)cellModelWithDict:(NSDictionary*)dict;

@end
